package org.phantom.securityframework.datapermission;

import java.lang.annotation.Annotation;
/**
 * sql语句生成器
 * @author apple
 *
 */
public interface SqlBuilder {

	/**
	 * 生成查询语句
	 * @param anno
	 * @param query
	 * @return
	 */
	public String build(Annotation anno,DimensionQuery query);
	/**
	 * 生成查询条数语句
	 * @param anno
	 * @param query
	 * @return
	 */
	public String buildCount(Annotation anno,DimensionQuery query);
}
